package com.example.gateway.designPattern.prototype;

import com.example.gateway.designPattern.prototype.EventTemplate;

/**
 * @ClassName: Mail
 * @Description:
 * @Author: YourName
 * @Date: 2024/12/30
 */

public class Mail implements Cloneable{

    private String tail;
    private String subject;

    public Mail(EventTemplate eventTemplate) {
        this.tail = eventTemplate.getName();
        this.subject = eventTemplate.getDescription();
    }

    public Object clone() throws CloneNotSupportedException {
        Mail proto = (Mail) super.clone();
        return proto;
    }
}
